package yx.model;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Version;
import org.hibernate.annotations.GenericGenerator;

/**
 * BsInvitationReply entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "bs_invitation_reply", catalog = "")
public class BsInvitationReply implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer version;
	private Integer invitationId;
	private Integer serialNo;
	private String content;
	private Integer replierId;
	private String replierName;
	private Timestamp replyTime;
	private String deleteFlag;
	private Integer optId;
	private Timestamp optTime;

	// Constructors

	/** default constructor */
	public BsInvitationReply() {
	}

	/** full constructor */
	public BsInvitationReply(Integer invitationId, Integer serialNo, String content, Integer replierId, String replierName, Timestamp replyTime, String deleteFlag, Integer optId, Timestamp optTime) {
		this.invitationId = invitationId;
		this.serialNo = serialNo;
		this.content = content;
		this.replierId = replierId;
		this.replierName = replierName;
		this.replyTime = replyTime;
		this.deleteFlag = deleteFlag;
		this.optId = optId;
		this.optTime = optTime;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "increment")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "ID", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Version
	@Column(name = "VERSION")
	public Integer getVersion() {
		return this.version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}

	@Column(name = "INVITATION_ID")
	public Integer getInvitationId() {
		return this.invitationId;
	}

	public void setInvitationId(Integer invitationId) {
		this.invitationId = invitationId;
	}

	@Column(name = "SERIAL_NO")
	public Integer getSerialNo() {
		return this.serialNo;
	}

	public void setSerialNo(Integer serialNo) {
		this.serialNo = serialNo;
	}

	@Column(name = "CONTENT")
	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@Column(name = "REPLIER_ID")
	public Integer getReplierId() {
		return this.replierId;
	}

	public void setReplierId(Integer replierId) {
		this.replierId = replierId;
	}

	@Column(name = "REPLIER_NAME", length = 32)
	public String getReplierName() {
		return this.replierName;
	}

	public void setReplierName(String replierName) {
		this.replierName = replierName;
	}

	@Column(name = "REPLY_TIME", length = 19)
	public Timestamp getReplyTime() {
		return this.replyTime;
	}

	public void setReplyTime(Timestamp replyTime) {
		this.replyTime = replyTime;
	}

	@Column(name = "DELETE_FLAG", length = 1)
	public String getDeleteFlag() {
		return this.deleteFlag;
	}

	public void setDeleteFlag(String deleteFlag) {
		this.deleteFlag = deleteFlag;
	}

	@Column(name = "OPT_ID")
	public Integer getOptId() {
		return this.optId;
	}

	public void setOptId(Integer optId) {
		this.optId = optId;
	}

	@Column(name = "OPT_TIME", length = 19)
	public Timestamp getOptTime() {
		return this.optTime;
	}

	public void setOptTime(Timestamp optTime) {
		this.optTime = optTime;
	}

}